<%@page import="java.text.SimpleDateFormat"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String pathx = request.getContextPath();
	String basePathx = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ pathx + "/";
%>

<div class="tph-page-container tph-page-header-fixed">
	<!-- 新版菜单条 -->
	<!-- 一级菜单 -->
	<div class="tph-nav" style="float: left;position: relative;width: 80%;">
		<ul class="">
			<li style="width: 200px;line-height: 60px;"><img src="img/logo.png" alt=""></li>

			<!-- c:choose标签相当于java里的switch case功能，c:when是相当于 case c:otherwise相当于default -->
			<c:forEach var="s" items="${menus}">
				<li ${param.a eq s.sortNo?'class="curr"':''}  onclick="javascript:location.href=' <%=basePathx %>${s.service}';"><i
					 class="fa ${not empty s.icon?s.icon:''} am-icon-lg"></i>
					<p>${s.detail}</p>
				</li>
			</c:forEach>

		</ul>
	</div>
	<ul class="tph-login-out">
		<li><a href="login" class="tph-header-list-link"><span class="am-icon-sign-out tph-header-list-ico-out-size"></span></a></li>

		<li class="am-dropdown" data-am-dropdown data-am-dropdown-toggle>
			<a class="am-dropdown-toggle tph-header-list-link" href="javascript:;">
				<a class="am-dropdown-toggle tpl-header-list-link" href="javascript:;">
					<span class="tpl-header-list-user-nick"></span><span class="tpl-header-list-user-ico"> ${ADMINXIANQU888.truename}</span>
				</a>
			</a>

		</li>

	</ul>

	<div style="clear: both;"></div>

	<!-- 二级菜单 -->
	<div class="tph-sec-nav" style="color: #fff;">

		<!-- varStatus是每次访问项的，状态相关值由userStatus对象存储 -->
		<c:forEach var="s" items="${menus}" varStatus="fsts">
			<ul class="am-nav am-nav-pills sec_bar active" style="${param.a eq s.sortNo?'':'display:none;'}">
				<c:forEach var="t" items="${s.list}" varStatus="sts">
					<%-- 	    <c:if test="${sts.first}"> --%>
					<%-- 	      <c:set var="firstLi" value="style='margin-left: ${fsts.index*100 }px;'"></c:set> --%>
					<%-- 	    </c:if> --%>
					<li ${param.a eq s.sortNo and param.b eq t.sortNo?' class="am-nav-active"':''} authId=' ${t.authId }'>
					    <a href="${t.service}">${t.detail}</a>
					</li>
		      </c:forEach>
		   </ul>
		</c:forEach>

    </div>
</div>


<style>
.am-nav-active > a{
    text-decoration: none;
    color: #ffb600;
}
</style>
